<div id="catalog" >
    <div class="cata-title"><h1 class="heading"><?php echo $catalog->title; ?></h1></div>
    <div class="cata-content">
        <div class="cata-content-inner">
        <?php 
            $i=0;
            echo '<div class="row row1">';
            foreach($artice as $art){ 
                $link = base_url().$catalog->alias.'/'.$art->alias.'.html';
                echo '<div class="colartice" style="width: '.round((100/$col),3).'%;"><div class="colartice-inner">';
                    echo '<div class="title">';
                        echo '<h3><a href="'.$link.'">'.$art->title.'</a></h3>';
                    echo '</div>';
                    echo '<div class="art-intro">';
                        echo '<div class="fLeft img" style="padding:3px 5px 0 0"><img src='.$art->image.' alt="'.$art->title.'"/></div>';
                        echo '<p>'.$art->introtext.'</p>';
                        echo '<p style="margin:-5px 0 0"><a class="readmore" href="'.$link.'">Đọc thêm...</a></p>';
                    echo '</div>';
                echo '</div></div>';
                $i++;
                if ($i%$col == 0){
                    if($i == count($artice))
                        echo '</div><div>';
                    else
                        echo '</div><div class="row row'.(round($i/$col)+1).'">';
                }
            }
            echo '</div>';
        ?>
        <div class="phantrang"><?php echo $this->pagination->create_links();?></div>
        </div>
    </div>
    
</div>